<?php
namespace App\Providers;

use Illuminate\Support\ServiceProvider;
class ComposerServiceProvider extends ServiceProvider
{


    /**
     * Register bindings in the container.
     *
     * @return void
     */
    public function boot()
    {
        // Using class based composers...
        view()->composer(
            'member.*','App\Http\ViewComposers\MemberComposer'
        );
        view()->composer(
            'admin.*', 'App\Http\ViewComposers\AdminComposer'
        );
        view()->composer(
            'company.*', 'App\Http\ViewComposers\CompanyCenterComposer'
        );
        view()->composer(
            'front.*', 'App\Http\ViewComposers\FrontComposer'
        );

    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}
